<!DOCTYPE html>
<html>
<head>
    <title>秒杀列表页</title>
	<#include  "page/common/head.ftl"/>
</head>

<body>
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading text-center">
            <h2>秒杀列表</h2>
        </div>
        <div class="panel-body">
            <table class="table table-hover">

                <thead>
                <tr>
                    <td>名称</td>
                    <td>库存</td>
                    <td>开始时间</td>
                    <td>结束时间</td>
                    <td>创建时间</td>
                    <td>详情页</td>
                </tr>
                </thead>

                <tbody>
                <#if list?? && list?size gt 0>
                <#list list as d>
                	<tr>
                        <td>${d.name}</td>
                        <td>${d.number}</td>
                        <td>
                            ${d.startTime?string('yyyy-MM-dd HH:mm:ss')}
                        </td>
                        <td>
                        	 ${d.endTime?string('yyyy-MM-dd HH:mm:ss')}
                        </td>
                        <td>
                        	${d.createTime?string('yyyy-MM-dd HH:mm:ss')}
                        </td>
                        <td>
                            <a class="btn btn-info" href="/seckill/${d.seckillId}/detail" 　target="_blank">Link</a>
                        </td>
                    </tr>
                </#list>
                </#if>
                </tbody>

            </table>

        </div>
    </div>
</div>

</body>
<script src="https://code.jquery.com/jquery.js"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
</html>